<?php

namespace App\Models;

use Dcat\Admin\Models\Administrator;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class AdminUser extends Administrator
{
    use HasFactory;
//    protected $table = 'admin_users';

    public function mini_programs()
    {
        return $this->belongsToMany(MiniProgram::class, AdminMiniProgram::class,'admin_id', 'mini_type', 'id', 'slug');
    }
}
